#if 0
#include <iostream>
#include <ctime>

typedef struct tagSNode {
	int value;
	tagSNode* pNext;
	tagSNode(int v) :value(v), pNext(NULL) {}
}SNode;

SNode* Add(SNode* pHead1, SNode* pHead2);
void Print(SNode*);
void Destroy(SNode*);

int main() {
	SNode* pHead1 = new SNode(0);
	srand((int)time(0));
	for (int i = 0; i < 6; ++i) {
		SNode* p = new SNode(rand() % 10);
		p->pNext = pHead1->pNext;
		pHead1->pNext = p;
	}

	SNode* pHead2 = new SNode(0);
	for (int i = 0; i < 9; ++i) {
		SNode* p = new SNode(rand() % 10);
		p->pNext = pHead2->pNext;
		pHead2->pNext = p;
	}

	Print(pHead1);
	Print(pHead2);
	SNode* pSum = Add(pHead1, pHead2);
	Print(pSum);
	Destroy(pHead1);
	Destroy(pHead2);
	Destroy(pSum);
	
	return 0;
}

SNode* Add(SNode* pHead1, SNode* pHead2) {
	SNode* pSum = new SNode(0);

	return NULL;
}

void Destroy(SNode* p) {
	SNode* next;
	while (p) {
		next = p->pNext;
		delete p;
		p = next;
	}
}

void 

#endif



